home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Fonts / RegionID.h < prev    next >
Text File  |  2000-06-23  |  484b  |  31 lines

  1. // RegionID.h
  2.  
  3. #ifndef RegionID_h
  4. #define RegionID_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. #include <Script.h>
  11.  
  12. class RegionID
  13.   {
  14.     private:
  15.         uint16 id;
  16.     
  17.     public:
  18.         explicit RegionID( uint16 value )
  19.           : id( value )
  20.           {}
  21.     
  22.         static RegionID US()                            { return RegionID( verUS ); }
  23.         
  24.         uint16 ID() const                                { return id; }
  25.         
  26.         bool operator==( RegionID s ) const        { return id == s.id; }
  27.         bool operator!=( RegionID s ) const        { return id != s.id; }
  28.   };
  29.  
  30. #endif
  31.